package org.eiahe.hr.salary.domain.vo;

import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.eiahe.hr.salary.domain.CashPayment;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * 现金发放视图对象 hr_cash_payment
 *
 * @author zhangnn
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = CashPayment.class)
public class CashPaymentVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 现金发放ID
     */
    @ExcelProperty(value = "现金发放ID")
    private Long paymentId;

    /**
     * 租户ID
     */
    @ExcelProperty(value = "租户ID")
    private String tenantId;

    /**
     * 工号
     */
    @ExcelProperty(value = "工号")
    private String employeeNo;

    /**
     * 奖金类型
     */
    @ExcelProperty(value = "奖金类型")
    private String bonusType;

    /**
     * 发放金额
     */
    @ExcelProperty(value = "发放金额")
    private BigDecimal paymentAmount;

    /**
     * 发放时间
     */
    @ExcelProperty(value = "发放时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date paymentTime;

    /**
     * 领取状态(0未领取 1已领取)
     */
    @ExcelProperty(value = "领取状态")
    private String receiveStatus;

    /**
     * 领取人签字(电子)
     */
    @ExcelProperty(value = "领取人签字")
    private String receiverSignature;

    /**
     * 领取时间
     */
    @ExcelProperty(value = "领取时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date receiveTime;

    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 更新时间
     */
    @ExcelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
}
